<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%@ include file="/WEB-INF/jsp/sys/uploader.jsp" %>
<%@page import="com.centit.util.RequestUtil" %>

<html lang="zh-cmn-Hans">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/plugin/css/index.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/ztree/js/jquery.ztree.all.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/plugin/js/selectTree.js"></script>
    <script type="text/javascript"	src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/all/airplanebaseinfo-allinfo.js"></script>
    <style>
        .viewTable th { background: #F5F0F0; font-weight: bold; text-align: center; white-space: nowrap;height: 53px }
        .viewTable th:after { content: "";}
        .viewTable .tTitle{font-weight: bold;text-align: center}
        .viewTable td {height: 50px}
        .different{background-color: yellow
        }
        .normalJh{background-color: #00c8fb}
        .normal{background-color: #11ff0d}
    </style>
</head>
<body style="height: 100%;">
<form class="layui-form" id="airplanForm" action="" style="padding: 10px"
      lay-filter="azdbqryForm">
    <input type="hidden" name="recId" id="recId" value="${recId}">

    <div style="width: 48%;display: inline-block;">
        <table class="viewTable" >

            <tr>
                <th colspan="5">定检，喷漆，起落架表</th>
            </tr>
            <tr>
                <td class="tTitle">
                    机型
                </td>
                <td class="tTitle">
                    机号
                </td>
                <td class="tTitle">
                    服务类型
                </td>
            </tr>
            <c:forEach items="${dbOldInfoDjpq}" var="dbOldInfoDjpq">
                <tr class="${dbOldInfoDjpq.trType}">
                    <td>${dbOldInfoDjpq.airPlaneType}</td>
                    <td>${dbOldInfoDjpq.airPlaneNum}</td>
                    <td>${dbOldInfoDjpq.djLx}</td>
                </tr>

            </c:forEach>
        </table>
    </div>
    <div style="width: 48%;display: inline-block;">
        <table class="viewTable"  >

            <tr>
                <th colspan="5" style="background-color: #56c976">机队年度计划表</th>
            </tr>
            <tr>
                <td class="tTitle">
                    机型
                </td>
                <td class="tTitle">
                    机号
                </td>
                <td class="tTitle">
                    服务类型
                </td>
            </tr>
            <c:if test="${fn:length(dbNewInfoDjpq)==0}">
                <tr>
                    <td colspan="5" class="tTitle" >
                        请先上传机队年度计划表再进行比对
                    </td>
                </tr>
            </c:if>
            <c:if test="${fn:length(dbNewInfoDjpq)>0}">
                <c:forEach items="${dbNewInfoDjpq}" var="dbNewInfoDjpq">
                    <tr class="${dbNewInfoDjpq.trType}">
                        <td>${dbNewInfoDjpq.airPlaneType}</td>
                        <td>${dbNewInfoDjpq.airPlaneNum}</td>
                        <td>${dbNewInfoDjpq.djLx}</td>
                    </tr>

                </c:forEach>
            </c:if>

        </table>
    </div>


    <div style="text-align: center; margin-top: 20px">
        <c:if test="${fn:length(dbNewInfoDjpq)==0}">
            <a  class="layui-btn" id="onImportJdndjh"><i class="layui-icon"></i>上传机队年度计划表</a>
        </c:if>

        <button class="layui-btn layui-btn-primary" onclick="CloseWin()">关闭</button>
    </div>
</form>
<script>
    var basePath= "${pageContext.request.contextPath}";
</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/airplaneinfo_db/ctrl/gcwt_contrast.js"></script>
</body>
</html>
